-- GENERATED SPELL FOR [Shadowforge Sharpshooter] --


function spell0_7290(pUnit, Event) --@Piercing Shot,n/a--
pUnit:FullCastSpellOnTarget(6685,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7290', 15000, 1)
end

function spell1_7290(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7290', 619, 1)
end

function Sorts_7290(pUnit, Event)
local choix_sorts_7290 = math.random(0, 1)
if choix_sorts_7290 == 0 then
pUnit:RegisterEvent('spell0_7290', 1, 1)
end
if choix_sorts_7290 == 1 then
pUnit:RegisterEvent('spell1_7290', 1, 1)
end
end

function mob7290_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7290', math.random(1500, 3000), 1)
end

function mob7290_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7290_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7290_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7290, 1, 'mob7290_Action')
RegisterUnitEvent(7290, 2, 'mob7290_Leave')
RegisterUnitEvent(7290, 3, 'mob7290_Kill')
RegisterUnitEvent(7290, 4, 'mob7290_Die')
